<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            margin: 0 auto;
            background-color: pink;
            text-align: center;
            margin-top:40px;
            height: 100px;
            width: 300px;
        }
    </style>
</head>
<body>
    <div>暂时找不到页面，五秒钟之后跳转到百度首页</div>
    <script>
        var div = document.querySelector('div');
        window.setTimeout(function(){
            location.href = "https://www.baidu.com/";
        },3000)
    </script>
</body>
</html>